<template>
  <div class="content">
    <div class="avter">
      <img :src="student.srcImg" alt="" />
    </div>
    <span>姓名：{{ student.name }}</span>
    <span>年龄：{{ student.age }}</span>
    <span>性别：{{ student.gender }}</span>
    <span>总分：{{ student.yuwen + student.math + student.english }}</span>
  </div>
  <div @click="$emit('tap', index)" class="shangla" v-if="(student.yuwen < 60) | (student.math < 60) | (student.english < 60) ? false : true">---</div>
  <div class="detailPage" v-show="student.show">
    <div @click="$emit('tap', index)" class="detailBtn">---</div>
    <span>语文：{{ student.yuwen }}</span>
    <span>数学：{{ student.math }}</span>
    <span>英语：{{ student.english }}</span>
  </div>
</template>
<script>
export default {
  emits: ['tap'],
  props: {
    student: Object
  },
  setup() {}
}
</script>
